<!-- 顶部导航begin -->
<script type="text/javascript">
	var c_mid = "{:session('member_id')}";
</script>
<header class="nav_header navbar navbar-static-top bg-primary bs-docs-nav bg-primary navbar-fixed-top" id="top">
  <div class="container">
    <div class="navbar-header">
      <button class="navbar-toggle collapsed" type="button" data-toggle="collapse" data-target="#bs-navbar" aria-controls="bs-navbar" aria-expanded="false">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a href="__WEB__" class="navbar-brand">轩豆网</a>
    </div>
    <nav id="bs-navbar" class="collapse navbar-collapse">
      <ul class="nav navbar-nav">
        <li {empty name="cate_id"}class="active"{/empty}>
          <a href="__WEB__">首页</a>
        </li>
        {foreach name="cate_list" item="vo"}
        <li {notempty name="cate_id"}{if condition="$cate_id eq $vo['id']"}class="active"{/if}{/notempty}>
          <a href="{:Url('/cate/index/id/'.$vo['id'])}">{$vo.cate_name}</a>
        </li>
        {/foreach}
      </ul>
      <ul class="nav navbar-nav navbar-right">
      	{empty name="Think.session.member_id"}
        <li><a href="__WEB__/qq/connect.html">登录</a></li>
        {/empty}
        {notempty name="Think.session.member_id"}
        <li class="fld_user">
        	<span><img src="{:session('head_imgurl')}" width="30px">&nbsp;</span>
        	<span>{:session('nick_name')}&nbsp;</span>
        	<span><a href="{:Url('/Index/login_out')}" style="color:#b3b3b3;">退出</a></span>
        </li>
        {/notempty}
      </ul>
    </nav>
  </div>
</header>
<!-- 顶部导航end -->